<?
class PhotoEntity {
	private $photoID;
	private $postID;
	private $path;
	private $caption;
	
	public function __construct($photoID = null, $postID = null, $path = null, $caption = null) {
		$this->setPhotoID($photoID);
		$this->setPostID($postID);
		$this->setPath($path);
		$this->setCaption($caption);
	}
	
	public function getPhotoID() { return $this->photoID; }
	public function getPostID() { return $this->postID; }
	public function getPath() { return $this->path; }
	public function getCaption() { return $this->caption; }
	
	public function setPhotoID($photoID) { $this->photoID = $photoID; }
	public function setPostID($postID) { $this->postID = $postID; }
	public function setPath($path) { $this->path = $path; }
	public function setCaption($caption) { $this->caption = $caption; }
	
	public function getThumbPath() { return str_replace("/img/", "/thumb/", $this->path); }
}
?>
